var e = require("../../@babel/runtime/helpers/defineProperty"), t = require("../../datas/list_data");

Page({
    data: {
        center: []
    },
    onLoad: function(e) {
        this.setData({
            center: t.center
        });
    },
    handleClick: function(t) {
        var n = t.currentTarget.dataset.indexparent, a = t.currentTarget.dataset.index;
        this.setData(e({}, "center[" + n + "].currentTab", a));
    },
    handleSwiper: function(t) {
        var n = t.currentTarget.dataset.indexparent, a = t.detail, r = a.current, o = a.source;
        if ("autoplay" === o || "touch" === o) {
            var c = r;
            this.setData(e({}, "center[" + n + "].currentTab", c));
        }
    },
    toTopclick: function(e) {
        wx.pageScrollTo ? wx.pageScrollTo({
            scrollTop: 0
        }) : wx.showModal({
            title: "提⽰",
            content: "当前微信版本过低，⽆法使⽤该功能，请升级到最新微信版本后重试。"
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});